package cn.gemframe.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.regex.Pattern;

public class GemRegexUtils
{
	public static final Logger logger	 = LoggerFactory.getLogger(GemRegexUtils.class);
	
	/**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_MOBILE = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";

	public static boolean isPhoneNumber(String mobile)
	{
		 return Pattern.matches(REGEX_MOBILE, mobile);
	}
}